package com.nuoniu.sibanyun.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色数据权限表
 * </p>
 *
 * @author baiqiang
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role_data_scope")
@ApiModel(value="SysRoleDataScope对象", description="角色数据权限表")
public class SysRoleDataScope extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "控制角色编码")
    @TableId("role_id")
    private Long roleId;

    @ApiModelProperty(value = "控制类型 office:机构  user:用户")
    @TableField("ctrl_type")
    private String ctrlType;

    @ApiModelProperty(value = "控制数据")
    @TableField("ctrl_data")
    private Long ctrlData;

    @ApiModelProperty(value = "控制权限")
    @TableField("ctrl_permi")
    private String ctrlPermi;


}
